import { createHashRouter, } from "react-router-dom";
import Layout from "@/page/Layout/Layout.js";
import New from "@/page/New/New.js";
import Month from "@/page/Month/Month.js";
import Year from "@/page/Year/Year.js";
const router = createHashRouter([
  {
    path: "/",
    element: <Layout />,
    children: [
      {
        index: true,
        element: <Month />, 
      },
      {
        path: "/year",
        element: <Year />, 
      },
    ]
  },
  {
    path: "/new",
    element: <New />, 
  },
  {
    path: "*",
    element: <div>404 not found</div>,
  }
]);
export default router